<template>
  <div id="home">
    <mt-button @click="testFun()" type="danger">danger</mt-button>
    <p>{{msg}}</p>
  </div>
</template>

<style lang="less" src="../assets/style/home.less"></style>
<script>
  import {testRequest} from '../assets/api/api.js';
  import util from '../assets/script/util.js';

  export default {
    data(){
      return {
        msg:'123'
      }
    },
    mounted:function(){
      util.fun1();
    },
    methods:{
      testFun:function(){
        let params = {
        };
        testRequest(params).then((res) =>{
          console.log('suc')
        }).catch(() => {
          console.log('err')
        })
      }
    }
  }
</script>



